package jzh;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class People {
    public static void main(String[] args) throws ParseException {
        String s1 = "2018-02-01 01:00:00";
        String s2 = "2018-02-11 01:00:00";
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date parse = dateFormat.parse(s1);
        Date parse1 = dateFormat.parse(s2);
        System.out.println(parse.after(parse1));
    }
}
